/* 全局样式重置和布局修复 */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#app {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* 确保所有页面容器都能正确占满视口 */
.page-container,
.app-container,
.login-container {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* 修复Element Plus组件的布局问题 */
.el-container {
  height: 100%;
}

.el-header {
  flex-shrink: 0;
}

.el-aside {
  flex-shrink: 0;
}

.el-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* 确保表格和内容区域能够正确显示 */
.el-table {
  width: 100% !important;
}

.el-table__body-wrapper {
  overflow-y: auto;
}

/* 修复滚动条问题 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 响应式设计修复 */
@media (max-width: 768px) {
  .el-aside {
    width: 200px !important;
    min-width: 200px !important;
  }
}

@media (max-width: 480px) {
  .el-aside {
    width: 180px !important;
    min-width: 180px !important;
  }
}

